<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
	function doSearchLog () {
		$('#saletab').datagrid('load',{
	            staffid: $("#staffidsea").val(),
	            drugid: $("#drugidsea").val(),
	            selldate: $("#selldatesea").val(),
            });
        $("#sellform").form("reset");
	}
</script>
<table id="saletab" class="easyui-datagrid" data-options="url:'SellMedicine/findsaleLog',striped:true,fitColumns:true,pagination:true,rownumbers:true,toolbar:'#salelogdiv'">
	<thead>
		<th data-options="field:'sellid',hidden:true">记录ID</th>
		<th data-options="field:'staffid',hidden:true">员工ID</th>
		<th data-options="field:'staffname',resizable:true">员工名称</th>
		<th data-options="field:'drugid',resizable:true">药品ID</th>
		<th data-options="field:'drugname',resizable:true">药品名称</th>
		<th data-options="field:'selldate',resizable:true">卖出日期</th>
		<th data-options="field:'sellcount',resizable:true">卖出数量</th>
	</thead>
	<tbody>
		
	</tbody>
</table>
<div id="salelogdiv" style="padding: 5px;">
	<form id="salelogform">
		<label for="staffid">员工ID</label>
		<input type="number" name="staffid" id="staffidsea" value="" />
	    <label for="drugid ">药品ID</label>
	    <input type="number " name="drugid " id="drugidsea" value="" />
	    <label for="selldate">卖出日期</label>
	    <input type="date" name="selldate " id="selldatesea" value="" />
	    <a href="javascript:void(0)" onclick="doSearchLog()" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
</form>
</div>

